package com.yuand.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yuandong
 * @date 2021/9/2 15:35
 */
@Data
@TableName("sys_menu")
public class Menu {

    @TableId(type = IdType.AUTO)
    private Integer menuId;

    private Integer pid;

    private String name;

    private String menuName;

    private String url;

    private String menuType;

    private String icon;

    private Integer state;

    @TableField(exist = false)
    private List<Menu> children=new ArrayList<>();

}
